package easy;

public class Solution_191 {

    public static int hammingWeight(int n) {
        int count=0;
        for (;n!=0;) {
            int mod = n & 1;
            if (mod==1) {
                count++;
            }
            n = n>>>1;
        }
        return count;
    }

    public static void main(String[] args) {
        int a = 964176192;
        int i = hammingWeight(-1);
        System.out.println(i);
    }
}
